import { lazy } from "react";
const routes = [
    {
        path: "/detail",
        component: lazy(() => import("../views/detail/Detail"))
    },
    {
        path: "/Index",
        component: lazy(() => import("../views/home/Index")),
        children: [
            {
                path: "/Index/shou",
                component: lazy(() => import("../views/home/shou/Shou")),
            },
            {
                path: "/Index/car",
                component: lazy(() => import("../views/home/car/Car")),
            },
            {
                path: "/Index/shop",
                component: lazy(() => import("../views/home/shop/Shop")),
            },
            {
                path: "/Index/my",
                component: lazy(() => import("../views/home/my/My")),
            },
            {
                path: "/Index",
                to: "/Index/shou"
            }
        ]
    },
    {
        path: "/",
        to: "/Index"
    }
]
export default routes